//
//  SZMineTableViewController.m
//  Weibo
//
//  Created by Zahi on 2017/7/22.
//  Copyright © 2017年 Zahi. All rights reserved.
//

#import "SZMineTableViewController.h"
#import "SZTestViewController.h"
#import "SZVisitorView.h"

@interface SZMineTableViewController ()

@end

@implementation SZMineTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (self.isLogin) {
        
        [self setupPushButton];
    } else {
        [self.visitorView setupVisitorInfo:@"登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过" imageName:@"visitordiscover_image_profile" isHome:NO];
    }
    
    
}

- (void)setupPushButton {
    
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem barButtonItemWithTitle:@"PUSH" image:nil target:self action:@selector(pushItemAction)];
}

- (void)pushItemAction {
    
    SZTestViewController *testVc = [SZTestViewController new];
    
    [self.navigationController pushViewController:testVc animated:YES];
}

@end
